import { getCityList } from '../../api/request'
export default {
    namespaced: true,
    state: {
        cityList: []
    },
    mutations: {
        getCityList(state, data) {
            state.cityList = data
        }
    },
    actions: {
        async setCityList({ commit }) {
            let ret = await getCityList()
                // console.log(ret.data.data, 'retretret')
            commit('getCityList', ret.data.data)
        }
    }

}